class LYOrderModel {
  LYOrderModel({
    this.goodsCode,
    this.goodsName,
    this.orderNo,
    this.payAmount,
    this.paidAmount,
    this.paidCurrency,
  });

  LYOrderModel.fromJson(dynamic json) {
    goodsCode = json['goodsCode'];
    goodsName = json['goodsName'];
    orderNo = json['orderNo'];
    payAmount = json['payAmount'];
    paidAmount = json['paidAmount'];
    paidCurrency = json['paidCurrency'];
  }
  String? goodsCode;
  String? goodsName;
  String? orderNo;
  num? payAmount;
  num? paidAmount;
  String? paidCurrency;
  LYOrderModel copyWith({
    String? goodsCode,
    String? goodsName,
    String? orderNo,
    num? payAmount,
    num? paidAmount,
    String? paidCurrency,
  }) =>
      LYOrderModel(
        goodsCode: goodsCode ?? this.goodsCode,
        goodsName: goodsName ?? this.goodsName,
        orderNo: orderNo ?? this.orderNo,
        payAmount: payAmount ?? this.payAmount,
        paidAmount: paidAmount ?? this.paidAmount,
        paidCurrency: paidCurrency ?? this.paidCurrency,
      );
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['goodsCode'] = goodsCode;
    map['goodsName'] = goodsName;
    map['orderNo'] = orderNo;
    map['payAmount'] = payAmount;
    map['paidAmount'] = paidAmount;
    map['paidCurrency'] = paidCurrency;
    return map;
  }
}
